<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;

/**
 * @mixin think\Model
 */
class Ones extends Model
{
    protected $table='school';
    protected $pk='id';

    public function getAll(){
        return self::paginate(3);
    }
    public function addOne($data){
        return self::insert($data);
    }
    public function delOne($where){
        return self::where($where)->delete();
    }
    public function upOne($where,$data){
        return self::where($where)->update($data);
    }
}
